package com.fumin.service.impl;

import com.fumin.mapper.RefundRecordMapper;
import com.fumin.pojo.RefundRecord;
import com.fumin.service.RefundRecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Lingo on 2018/3/8.
 */
@Service
public class RefundRecordServiceImpl implements RefundRecordService
{

    @Resource
    RefundRecordMapper refundRecordMapper;


    @Override
    public int deleteByPrimaryKey(Long id) {
        return refundRecordMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(RefundRecord record) {
        return refundRecordMapper.insert(record);
    }

    @Override
    public int insertSelective(RefundRecord record) {
        return refundRecordMapper.insertSelective(record);
    }

    @Override
    public RefundRecord selectByPrimaryKey(Long id) {
        return refundRecordMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(RefundRecord record) {
        return refundRecordMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(RefundRecord record) {
        return refundRecordMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<RefundRecord> selectByUserPk(Long userId) {
        return refundRecordMapper.selectByUserPk(userId);
    }
}
